package org.mall.modules.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 商店条目管理
 * @Author: jeecg-boot
 * @Date:   2019-11-14
 * @Version: V1.0
 */
@Data
@TableName("shop_category")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="shop_category对象", description="商店条目管理")
public class ShopCategory implements Serializable{
    
	/**id*/
	@Excel(name = "id", width = 15)
    @ApiModelProperty(value = "id")
	@TableId(type = IdType.UUID)
	private String categoryId;
	/**分类名称*/
	@Excel(name = "分类名称", width = 15)
    @ApiModelProperty(value = "分类名称")
	private String categoryName;
	/**排序值(字段越大越靠前)*/
	@Excel(name = "排序值(字段越大越靠前)", width = 15)
    @ApiModelProperty(value = "排序值(字段越大越靠前)")
	private Integer categoryRank;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**创建者id*/
	@Excel(name = "创建者id", width = 15)
    @ApiModelProperty(value = "创建者id")
	private String createUser;
	/**删除标识字段(0-未删除 1-已删除)*/
	@Excel(name = "删除标识字段(0-未删除 1-已删除)", width = 15)
    @ApiModelProperty(value = "删除标识字段(0-未删除 1-已删除)")
	private Integer isDeleted;
	/**父分类id*/
	@Excel(name = "父分类id", width = 15)
    @ApiModelProperty(value = "父分类id")
	private Integer parentId;
	/**店铺id*/
	@Excel(name = "店铺id", width = 15)
    @ApiModelProperty(value = "店铺id")
	private String shopId;
	/**修改时间*/
	@Excel(name = "修改时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
	private Date updateTime;
	/**修改者id*/
	@Excel(name = "修改者id", width = 15)
    @ApiModelProperty(value = "修改者id")
	private String updateUser;
}
